package com.paypal.android.MEP.b;

import android.app.Dialog;
import android.content.Context;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.GradientDrawable.Orientation;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.LinearLayout.LayoutParams;
import android.widget.TextView;
import com.paypal.android.MEP.PayPalActivity;
import com.paypal.android.MEP.e;
import com.paypal.android.MEP.h;
import com.paypal.android.MEP.l;
import com.paypal.android.MEP.m;
import com.paypal.android.a.f;
import com.paypal.android.a.g;
import com.paypal.android.a.j;
import com.paypal.android.a.q;
import com.paypal.android.a.r;
import java.util.ArrayList;

public final class i extends Dialog
  implements View.OnClickListener
{
  private Button a;
  private Button b;

  public i(Context paramContext)
  {
    super(paramContext);
    setCancelable(false);
    setCanceledOnTouchOutside(false);
    requestWindowFeature(1);
    LinearLayout localLinearLayout1 = f.a(paramContext, -1, -1);
    localLinearLayout1.setOrientation(1);
    localLinearLayout1.setGravity(1);
    localLinearLayout1.setPadding(10, 5, 10, 5);
    GradientDrawable localGradientDrawable = new GradientDrawable(GradientDrawable.Orientation.TOP_BOTTOM, new int[] { -1510918, -4336918 });
    localGradientDrawable.setCornerRadius(3.0F);
    localGradientDrawable.setStroke(0, 0);
    localLinearLayout1.setBackgroundDrawable(localGradientDrawable);
    TextView localTextView1 = q.a(r.a, paramContext);
    localTextView1.setText(j.a("ANDROID_cancel_transaction"));
    localTextView1.setGravity(17);
    localTextView1.setPadding(0, 0, 0, 10);
    localLinearLayout1.addView(localTextView1);
    String str1 = j.a("ANDROID_go_back_to_merchant");
    e locale = e.a();
    h localh = locale.c();
    String str2;
    if (locale.A() == 3)
      str2 = locale.d().a();
    while (true)
    {
      String str3 = str1.replace("%m", str2);
      TextView localTextView2 = q.a(r.d, paramContext);
      localTextView2.setText(str3);
      localTextView2.setGravity(17);
      localLinearLayout1.addView(localTextView2);
      TextView localTextView3 = q.a(r.d, paramContext);
      localTextView3.setText(j.a("ANDROID_lose_all_information"));
      localTextView3.setGravity(17);
      localLinearLayout1.addView(localTextView3);
      LinearLayout localLinearLayout2 = f.a(paramContext, -1, -2);
      localLinearLayout2.setOrientation(0);
      localLinearLayout2.setGravity(16);
      localLinearLayout2.setPadding(0, 10, 0, 10);
      LinearLayout localLinearLayout3 = f.a(paramContext, -1, -2, 0.5F);
      localLinearLayout3.setOrientation(1);
      localLinearLayout3.setGravity(1);
      localLinearLayout3.setPadding(0, 0, 3, 0);
      this.a = new Button(paramContext);
      this.a.setText(j.a("ANDROID_ok"));
      this.a.setTextColor(-16777216);
      this.a.setLayoutParams(new LinearLayout.LayoutParams(-1, f.b()));
      this.a.setGravity(17);
      this.a.setBackgroundDrawable(g.a());
      this.a.setOnClickListener(this);
      localLinearLayout3.addView(this.a);
      localLinearLayout2.addView(localLinearLayout3);
      LinearLayout localLinearLayout4 = f.a(paramContext, -1, -2, 0.5F);
      localLinearLayout4.setOrientation(1);
      localLinearLayout4.setGravity(1);
      localLinearLayout4.setPadding(3, 0, 0, 0);
      this.b = new Button(paramContext);
      this.b.setText(j.a("ANDROID_cancel"));
      this.b.setTextColor(-16777216);
      this.b.setLayoutParams(new LinearLayout.LayoutParams(-1, f.b()));
      this.b.setGravity(17);
      this.b.setBackgroundDrawable(g.b());
      this.b.setOnClickListener(this);
      localLinearLayout4.addView(this.b);
      localLinearLayout2.addView(localLinearLayout4);
      localLinearLayout1.addView(localLinearLayout2);
      setContentView(localLinearLayout1);
      return;
      if (locale.A() == 0)
      {
        if (locale.C())
        {
          str2 = ((m)localh.b().get(0)).a();
        }
        else
        {
          str2 = ((m)localh.b().get(0)).h();
          if ((str2 == null) || (str2.length() <= 0))
            str2 = ((m)localh.b().get(0)).a();
        }
      }
      else if (locale.A() == 2)
      {
        str2 = localh.g().h();
        if ((str2 == null) || (str2.length() <= 0))
          str2 = localh.g().a();
      }
      else
      {
        str2 = j.a("ANDROID_the_merchant");
      }
    }
  }

  public final void onClick(View paramView)
  {
    if (paramView == this.a)
    {
      dismiss();
      PayPalActivity.a().b();
    }
    while (paramView != this.b)
      return;
    dismiss();
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.paypal.android.MEP.b.i
 * JD-Core Version:    0.6.2
 */